<!--
 * @Description: 背景
 * @Author: zzj
 * @Date: 2021-08-17 10:17:44
 * @LastEditors: zzj
 * @LastEditTime: 2021-08-17 10:22:33
-->
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>背景</title>
    <style>
        .box{
            border: 10px dashed gold;
            width: 400px;
            height: 300px;
            padding: 10px;

            background-image: url(./images/box.webp);
            background-repeat: no-repeat;
            background-clip: border-box;
            background-origin: padding-box;
        }

    </style>
</head>
<body>
    <div class="box"></div>
</body>
</html>